package com.jwsoft.manager.core.gateway.controller.common;

import com.bifang.engine.assistant.core.domain.AppResponse;
import com.bifang.engine.protect.core.annotation.NoSignCrypto;
import com.bifang.module.base.common.vo.system.TokenVO;
import com.jwsoft.manager.common.vo.common.XzdyAppVO;
import com.jwsoft.manager.core.integration.common.XzdyLoginIntegration;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping(value = "/doc/api")
@Tag(name = "学在东阳登录", description = "学在东阳登录")
public class XzdyLoginConrtoller {
    @Autowired
    XzdyLoginIntegration xzdyLoginIntegration;
    @PostMapping(value = "/xzdy0001")
    @Operation(summary = "学在东阳浙里办端登录",description = "学在东阳浙里办端登录")
    @NoSignCrypto
    public AppResponse<TokenVO> loginApp(@RequestBody XzdyAppVO vo){
        return AppResponse.successData(xzdyLoginIntegration.loginApp(vo));
    }
}
